import myAxios from "@/utils/myAxios"
import userStore from "@/store/modules/user";

const BaseUrl = '/api/tag'


/**
 * 获取tag列表
 * @returns {Promise<AxiosResponse<T>>}
 */
export async function getTagList() {
    return myAxios.get(`${BaseUrl}/list`, {
        headers: {
            Authorization: "Bearer " + userStore.state.token,
        }
    })
}
